﻿namespace FiftyOne.Foundation.Mobile.Detection.Wurfl.Matchers.Segment
{
    using System;

    internal class Segment
    {
        private bool _isValid = false;
        private int _score = 0;
        internal string Value = null;

        internal Segment(string value)
        {
            this.Value = value;
        }

        internal bool IsValid
        {
            get
            {
                return this._isValid;
            }
        }

        internal int Score
        {
            get
            {
                return this._score;
            }
            set
            {
                this._score = value;
                this._isValid = true;
            }
        }
    }
}

